package www.sofn.com.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import www.sofn.com.order.domain.pojo.GoodsOrderPO;
import www.sofn.com.order.domain.query.OrderInfoQuery;
import www.sofn.com.order.domain.vo.OrderCountVO;
import www.sofn.com.order.domain.vo.OrderInfoVO;

import java.io.Serializable;
import java.util.List;

@Mapper
public interface GoodsOrderMapper extends BaseMapper<GoodsOrderPO> {
    List<OrderInfoVO> finalOrderInfoByMemberId(@Param("memberId") Serializable memberId,@Param("query") OrderInfoQuery query);

    List<OrderCountVO> getOrderCount(@Param("memberId") String memberId);
}
